<?php
class Articles extends CI_Model{
	
	function get_hot_article_list(){
		$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM {$this->db->dbprefix}articles WHERE is_hot = 1 ORDER BY id DESC LIMIT 5";
		$result = $this->db->query($sql)->result_array();
		return $result;
	}
}